let config = {};

config.page = {
  size: 20,
  current: 1
}

config.datePickerOptions = {
  shortcuts: [{
    text: '最近一周',
    onClick(picker) {
      const end = new Date();
      const start = new Date();
      start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
      picker.$emit('pick', [start, end]);
    }
  }, {
    text: '最近一个月',
    onClick(picker) {
      const end = new Date();
      const start = new Date();
      start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
      picker.$emit('pick', [start, end]);
    }
  }, {
    text: '最近三个月',
    onClick(picker) {
      const end = new Date();
      const start = new Date();
      start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
      picker.$emit('pick', [start, end]);
    }
  }]
}

// 工单状态
config.WORKORDER_STATUS = [{
    value: 0,
    label: "待分配"
  },
  {
    value: 1,
    label: "已分配"
  },
  {
    value: 2,
    label: "已接单"
  },
  {
    value: 3,
    label: "已完工"
  },
  {
    value: 4,
    label: "已完成"
  },
  {
    value: 5,
    label: "已关闭"
  }
]

export default config;
